home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / newstick / frmtest.frm < prev    next >
Text File  |  1999-01-18  |  5KB  |  135 lines

  1. VERSION 5.00
  2. Object = "{916AB300-0F98-11D2-A87F-B47618400A73}#3.1#0"; "NewsTick.ocx"
  3. Begin VB.Form frmTest 
  4.    BackColor       =   &H00FFFFFF&
  5.    Caption         =   "DevPower NewsTicker"
  6.    ClientHeight    =   3375
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   6690
  10.    Icon            =   "frmTest.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    LockControls    =   -1  'True
  13.    Picture         =   "frmTest.frx":0442
  14.    ScaleHeight     =   3375
  15.    ScaleWidth      =   6690
  16.    StartUpPosition =   3  'Windows Default
  17.    Begin VB.CheckBox chkEnabled 
  18.       BackColor       =   &H00FFFFFF&
  19.       Caption         =   "Play"
  20.       Height          =   324
  21.       Left            =   6072
  22.       TabIndex        =   2
  23.       TabStop         =   0   'False
  24.       Top             =   1044
  25.       Value           =   1  'Checked
  26.       Width           =   624
  27.    End
  28.    Begin DevPowerNewsTicker.NewsTicker NewsTicker 
  29.       Align           =   2  'Align Bottom
  30.       Height          =   384
  31.       Index           =   2
  32.       Left            =   0
  33.       Top             =   2988
  34.       Width           =   6696
  35.       _ExtentX        =   11800
  36.       _ExtentY        =   741
  37.       Direction       =   1
  38.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  39.          Name            =   "MS Sans Serif"
  40.          Size            =   8.25
  41.          Charset         =   0
  42.          Weight          =   400
  43.          Underline       =   0   'False
  44.          Italic          =   0   'False
  45.          Strikethrough   =   0   'False
  46.       EndProperty
  47.       HoverUnderline  =   0   'False
  48.       MouseIcon       =   "frmTest.frx":1CE4
  49.       ScrollDelay     =   1
  50.       Caption         =   "DevPower NewsTicker...;allows full control over behaviour...;and allows you to...;download a text file to display..."
  51.    End
  52.    Begin DevPowerNewsTicker.NewsTicker NewsTicker 
  53.       Align           =   1  'Align Top
  54.       Height          =   972
  55.       Index           =   1
  56.       Left            =   0
  57.       Top             =   0
  58.       Width           =   6696
  59.       _ExtentX        =   11800
  60.       _ExtentY        =   1720
  61.       BackColor       =   16777215
  62.       ClickColor      =   12582912
  63.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  64.          Name            =   "Tahoma"
  65.          Size            =   12
  66.          Charset         =   0
  67.          Weight          =   700
  68.          Underline       =   0   'False
  69.          Italic          =   0   'False
  70.          Strikethrough   =   0   'False
  71.       EndProperty
  72.       HighlightColor  =   8388608
  73.       HoverBold       =   0   'False
  74.       MouseIcon       =   "frmTest.frx":1E46
  75.       MousePointer    =   99
  76.       TextColor       =   192
  77.       Caption         =   $"frmTest.frx":1FA8
  78.       Picture         =   "frmTest.frx":207E
  79.    End
  80.    Begin VB.Label lblEvents 
  81.       BackStyle       =   0  'Transparent
  82.       Height          =   732
  83.       Index           =   2
  84.       Left            =   0
  85.       TabIndex        =   0
  86.       Top             =   1848
  87.       Width           =   3312
  88.       WordWrap        =   -1  'True
  89.    End
  90.    Begin VB.Label lblEvents 
  91.       BackStyle       =   0  'Transparent
  92.       Height          =   732
  93.       Index           =   1
  94.       Left            =   0
  95.       TabIndex        =   1
  96.       Top             =   1044
  97.       Width           =   3312
  98.       WordWrap        =   -1  'True
  99.    End
  100. End
  101. Attribute VB_Name = "frmTest"
  102. Attribute VB_GlobalNameSpace = False
  103. Attribute VB_Creatable = False
  104. Attribute VB_PredeclaredId = True
  105. Attribute VB_Exposed = False
  106.  
  107. Private Sub chkEnabled_Click()
  108.     NewsTicker(1).Play = chkEnabled And vbChecked
  109. End Sub
  110.  
  111. Private Sub Form_Load()
  112.     Me.Caption = "DevPower NewsTicker Version " + NewsTicker(1).Version + " (" + NewsTicker(1).VBVersion + ")"
  113. End Sub
  114.  
  115. Private Sub Form_Resize()
  116.     chkEnabled.Left = Me.ScaleWidth - chkEnabled.Width
  117. End Sub
  118.  
  119. Private Sub NewsTicker_Click(Index As Integer, ByVal iItemNumber As Integer, ByVal sItem As String, ByVal sItemURL As String)
  120.     lblEvents(Index).Caption = "Ticker " + CStr(Index) + " Item " + CStr(iItemNumber) + " - '" + sItem + "' clicked - embedded URL is "
  121.     If sItemURL = "" Then
  122.         lblEvents(Index).Caption = lblEvents(Index).Caption + "empty"
  123.     Else
  124.         lblEvents(Index).Caption = lblEvents(Index).Caption + sItemURL
  125.     End If
  126. End Sub
  127.  
  128. Private Sub NewsTicker_ItemScrollEnd(Index As Integer, ByVal iItemNumber As Integer)
  129.     lblEvents(Index).Caption = "Ticker " + CStr(Index) + " Item " + CStr(iItemNumber) + " scrolled out of view"
  130. End Sub
  131.  
  132. Private Sub NewsTicker_ItemScrollStart(Index As Integer, ByVal iItemNumber As Integer)
  133.     lblEvents(Index).Caption = "Ticker " + CStr(Index) + " Item " + CStr(iItemNumber) + " scrolling about to start"
  134. End Sub
  135.